<?php


namespace backend\controllers;


use common\cache\DictCache;
use common\models\Carousel;
use Yii;

/**
 * 轮播图
 * Class CarouselController
 * @package backend\controllers
 */
class CarouselController extends BaseController
{
    public function init()
    {
        parent::init();
        $this->model = Carousel::className();
        Yii::$app->view->params['positionAll'] = DictCache::get('sys_carousel_p');
    }
}